﻿@using Microsoft.AspNetCore.Mvc.Localization
@inject IViewLocalizer Localizer
@{
	ViewData["Title"] = Localizer["Home_Page"].Value;
}
<!DOCTYPE html>
<html lang="en">
<head >
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
	<title>@ViewData["Title"]</title>
</head>
<body>
<div class="container mt-5">
	<h1 class="display-4 text-center">@ViewData["Title"]</h1>

	@foreach (var article in Model)
	{
		<div class="card mt-3">
			<div class="card-body">
				<h2 class="card-title">@article.Name</h2>
				<p class="card-text">@article.Description</p>
			</div>
		</div>
	}
	<div class="text-center mt-5">
		<h1 class="display-4">@Localizer["Welcome"]</h1>
		<p class="lead">
			@Localizer["Learn_About", Html.Raw("<a href=\"https://learn.microsoft.com/aspnet/core\">" + Localizer["Building_WebApps_With_AspNetCore"].Value + "</a>")]
		</p>
	</div>
</div>
</body>
</html>
